'use strict'
const Sequelize = require('sequelize');

const sequelize = new Sequelize('job', 'sa', '123456', {
    host: 'localhost',
    dialect: 'mssql'/* one of 'mysql' | 'mariadb' | 'postgres' | 'mssql' */
});
module.exports = sequelize;

sequelize
  .authenticate()
  .then(() => {
    console.log('Connection has been established successfully.');
  })
  .catch(err => {
    console.error('Unable to connect to the database:', err);
  });